package com.net.xpay.common.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * [{'min': 0, 'max' :20000,'ratio':0.25}, {'min':20000, 'max': 30000, 'ratio':0.3}, {'min':30000, 'max':null, 'ratio':0.35}]
 * 合伙人月结分佣规则
 * [) 作闭右开
 */
@Getter
@Setter
@NoArgsConstructor
public class PartnerSettleRuleModel {

    @ApiModelProperty(required=true, notes = "最小金额 单位元")
    private BigDecimal min;

    @ApiModelProperty(required=true, notes = "最大金额 单位元")
    private BigDecimal max;

    @ApiModelProperty(required=true, notes = "分佣比例 0.3")
    private BigDecimal ratio;
}
